public class demo5 {
    public static void main(String[] args) {
        String s1 = "Hello";
        String s2 = "word";
        String s3 = new String("Hello");

        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        s1 = "asss";
        System.out.println(s1);
    }
}
